import service from '@/utils/request'

export const createOdsDbTable = (data) => {
  return service({
    url: '/odsDbTable/createOdsDbTable',
    method: 'post',
    data
  })
}

export const deleteOdsDbTable = (data) => {
  return service({
    url: '/odsDbTable/deleteOdsDbTable',
    method: 'delete',
    data
  })
}

export const deleteOdsDbTableByIds = (data) => {
  return service({
    url: '/odsDbTable/deleteOdsDbTableByIds',
    method: 'delete',
    data
  })
}

export const updateOdsDbTable = (data) => {
  return service({
    url: '/odsDbTable/updateOdsDbTable',
    method: 'put',
    data
  })
}

export const findOdsDbTable = (params) => {
  return service({
    url: '/odsDbTable/findOdsDbTable',
    method: 'get',
    params
  })
}

export const getOdsDbTableList = (params) => {
  return service({
    url: '/odsDbTable/getOdsDbTableList',
    method: 'get',
    params
  })
}

export const getAllOdsDbTables = (params) => {
  return service({
    url: '/odsDbTable/getAllOdsDbTables',
    method: 'get',
    params
  })
}
